package com.avcdata.avcchart.linechart.piechart;

import android.content.Context;
import android.util.AttributeSet;

import com.github.mikephil.charting.charts.PieChart;
import com.github.mikephil.charting.components.Description;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.data.PieData;

/**
 * 基础饼状图
 * Created by zyh on 17/6/20.
 */

public class AvcBasePieChart extends PieChart {
    public AvcBasePieChart(Context context) {
        super(context);
    }

    public AvcBasePieChart(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public AvcBasePieChart(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public void setUsePercentValues(boolean enabled) {
        super.setUsePercentValues(enabled);
    }

    @Override
    public void setCenterTextRadiusPercent(float percent) {
        super.setCenterTextRadiusPercent(percent);
    }

    @Override
    public void setDragDecelerationEnabled(boolean enabled) {
        super.setDragDecelerationEnabled(enabled);
    }

    @Override
    public void setNoDataText(String text) {
        super.setNoDataText(text);
    }

    @Override
    public Description getDescription() {
        return super.getDescription();
    }

    @Override
    public void setDrawHoleEnabled(boolean enabled) {
        super.setDrawHoleEnabled(enabled);
    }

    @Override
    public void setDrawEntryLabels(boolean enabled) {
        super.setDrawEntryLabels(enabled);
    }

    @Override
    public void setRotationEnabled(boolean enabled) {
        super.setRotationEnabled(enabled);
    }

    @Override
    public void setHighlightPerTapEnabled(boolean enabled) {
        super.setHighlightPerTapEnabled(enabled);
    }

    @Override
    public void setDrawSlicesUnderHole(boolean enable) {
        super.setDrawSlicesUnderHole(enable);
    }

    @Override
    public void setTouchEnabled(boolean enabled) {
        super.setTouchEnabled(enabled);
    }

    /**
     * 获取比例图
     * @return
     */
    @Override
    public Legend getLegend() {
        return super.getLegend();
    }

    /**
     * 设置数据
     * @param data
     */
    @Override
    public void setData(PieData data) {
        super.setData(data);
    }
}
